package com.bcd.beans;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.bcd.model.ArticleType;
import com.bcd.model.AuctionType;

public class CD extends Article{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String _genre;
	private String _year;
	private String _artist;
	private String _label;
	private String _duration;
	private String _musicstyle;

	public CD(){
		super(ArticleType.CD);
	}
	@Override
	public void setArticle(ResultSet rs) {
		try {
			_title = rs.getString("article_title");
			_start = rs.getDate("article_auction_start");
			_end = rs.getDate("article_auction_end");
			_price = rs.getFloat("article_auction_price");
			_auctionType = AuctionType.valueOf(rs.getString("article_auction"));
			
			_genre = rs.getString("article_title");
			_year = rs.getString("article_year");
			_artist = rs.getString("article_artist");
			_label = rs.getString("article_label");
			_duration = rs.getString("article_duration");
			_musicstyle = rs.getString("article_musicstyle");
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}		
	}
	/**
	 * @return the _genre
	 */
	public String get_genre() {
		return _genre;
	}
	/**
	 * @param _genre the _genre to set
	 */
	public void set_genre(String _genre) {
		this._genre = _genre;
	}
	/**
	 * @return the _year
	 */
	public String get_year() {
		return _year;
	}
	/**
	 * @param _year the _year to set
	 */
	public void set_year(String _year) {
		this._year = _year;
	}
	/**
	 * @return the _artist
	 */
	public String get_artist() {
		return _artist;
	}
	/**
	 * @param _artist the _artist to set
	 */
	public void set_artist(String _artist) {
		this._artist = _artist;
	}
	/**
	 * @return the _label
	 */
	public String get_label() {
		return _label;
	}
	/**
	 * @param _label the _label to set
	 */
	public void set_label(String _label) {
		this._label = _label;
	}
	/**
	 * @return the _duration
	 */
	public String get_duration() {
		return _duration;
	}
	/**
	 * @param _duration the _duration to set
	 */
	public void set_duration(String _duration) {
		this._duration = _duration;
	}
	/**
	 * @return the _musicstyle
	 */
	public String get_musicstyle() {
		return _musicstyle;
	}
	/**
	 * @param _musicstyle the _musicstyle to set
	 */
	public void set_musicstyle(String _musicstyle) {
		this._musicstyle = _musicstyle;
	}
	
	
}